package com.woniu.zsd.merchant.client;

import com.woniu.config.FeignConfig;
import com.woniu.zsd.commons.core.model.Result;

import com.woniu.zsd.merchant.form.Permission;
import io.swagger.annotations.ApiOperation;
import io.swagger.annotations.ApiParam;
import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestHeader;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(name = "zsd-permission", configuration = FeignConfig.class)
public interface PermissionClient {
    @GetMapping("/permission/selInfoByToken")
     Result<Permission> selInfoByToken(@RequestHeader("token") String token);

    @GetMapping("/permission/getCustomerService")
    Result<Integer> getCustomerService(@ApiParam(value = "用户id") @RequestParam("userId") Integer userId);
}
